﻿<?xml version="1.0" encoding="utf-8" ?>
<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2"
    assembly="SAKS.Models"
    namespace="SAKS.Models">
  <class name="DocFile" lazy="true">
    <id name="Id">
      <generator class ="guid.comb" />
    </id>
    <version name="Version" />
    <property name="Doc" type="BinaryBlob" length="2147483647"/>
    <property name="Type"/>
    <property name="Name"/>
    <property name="ProjectId"/>
    <property name="AchievementId"/>

    <one-to-one name="DocumentInfo" class="SAKS.Models.DocumentInfo,SAKS.Models" constrained="true" property-ref="DocFile" />

  </class>

</hibernate-mapping>